package com.usian.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 *
 * @EnableFeignClients:开启fegin调用
 * @TODO:
 * @Author:baimu
 * @Date:2024 06 26 09 15
 **/

@SpringBootApplication
@MapperScan("com.usian.order.mapper")
@EnableFeignClients
public class OrderApp {
    /**
     * 吧对象注入成bean
     */
    @Bean
    RestTemplate restTemplate(){
        return new RestTemplate();
    }


    public static void main(String[] args) {
        SpringApplication.run(OrderApp.class, args);
    }
}
